package bookSystem.user;

import bookSystem.operations.*;

import java.util.Scanner;

public class NormalUser extends User{
    //普通用户
    public NormalUser(String name){
        super(name);
        this.ioPerations = new IOperation[]{
                new FindOperatiion(),
                new BorrowOperation(),
                new ReturnOperation(),
                new ExitOperation()
        };
    }

    public int menu(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("*************************************");
        System.out.println("欢迎来到图书馆");
        System.out.println("1、查找图书");
        System.out.println("2、借阅图书");
        System.out.println("3、归还图书");
        System.out.println("4、退出系统");
        System.out.println("*************************************");
        return scanner.nextInt();
    }
}
